//
//  UIImage+NBL.m
//  NBLiOSTools
//
//  Created by GangX-yangjh on 2021/12/5.
//

#import "UIImage+NBL.h"

@implementation UIImage (NBL)

- (UIImage *)scaleWithSize:(CGSize)size
{
    UIGraphicsBeginImageContext(size);
    [self drawInRect:CGRectMake(0, 0, size.width, size.height)];
    UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return image;
}

@end
